/**
 * Copyright (C) 2006-2012 Tuniu All rights reserved
 * Author:
 * Date: Mon Jul 29 14:07:38 CST 2019
 * Description:
 */
package com.qhnu.zxjx.dao.zxjx;

import com.qhnu.zxjx.model.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface UserMapper {
	/**
	 * deleteByPrimaryKey
	 * 
	 * @param id
	 * @return int
	 */
	int deleteByPrimaryKey(Long id);

	/**
	 * insertSelective
	 * 
	 * @param record
	 * @return int
	 */
	int insertSelective(User record);

	/**
	 * selectByPrimaryKey
	 * 
	 * @param id
	 * @return User
	 */
	User selectByPrimaryKey(Long id);

	/**
	 * updateByPrimaryKeySelective
	 * 
	 * @param record
	 * @return int
	 */
	int updateByPrimaryKeySelective(User record);

	/**
	 * 查询邀请码
	 * @param params
	 * @return
	 */
	int countYqcode(Map<String,Object> params);

	int insertUser(Map<String,Object> params);

	/**
	 * 根据userId查询记录
	 * @param userId
	 * @return
	 */
	User selectByUserId(@Param("userId") String userId);
}